package com.shop.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shop.dao.MessageCenterDao;
import com.shop.domain.MessageCenter;
import com.shop.service.MessageCenterService;

/**
 * 
 * @author wenjuanhenxing
 * @version V1.0 MessageCenterServiceImpl.java 2016-2-20 下午7:20:28
 */
@Service("messageCenterServiceImpl")
public class MessageCenterServiceImpl implements MessageCenterService {

	@Resource(name = "messageCenterDaoImpl")
	private MessageCenterDao messageCenterDao;

	@Override
	public boolean addMessage(MessageCenter messageCenter) {
		return messageCenterDao.addMessageCenter(messageCenter);
	}

	@Override
	public boolean deleteMessageCenterById(Long id) {
		return messageCenterDao.deleteMessageCenterById(id);
	}

	@Override
	public boolean updateMessageStatus(MessageCenter messageCenter) {
		return messageCenterDao.updateMessageStatus(messageCenter);
	}

}
